home *** CD-ROM | disk | FTP | other *** search
- Path: news.ov.com!news
- From: glenn@ov.com (Fletcher.Glenn@ov.com)
- Newsgroups: comp.lang.c
- Subject: Re: Please help me
- Date: 13 Mar 1996 16:39:18 GMT
- Organization: OpenVision
- Message-ID: <4i6tnm$j9e@spanky.pls.ov.com>
- References: <4i19fa$kvu@badger.wmin.ac.uk>
- Reply-To: glenn@ov.com
- NNTP-Posting-Host: foghorn.pls.ov.com
-
- In article kvu@badger.wmin.ac.uk, darec@westminster.ac.uk (Nadarajah Thavaneethan) writes:
- > Hi there anyone know how to write a C program to read a directory and
- > then for each filename in the directory use the stat system call to
- > obtain the i-node and print the infomation in the form of a long listing.
- >
- >
- > The program should read the directory name from the keyboard.Then open
- > the directory. Read each entry in turn and obtain the i-node using stat.
- >
- >
- > Thanks in Advance
- > My Email : darec@westminster.ac.uk
- >
- >
-
-
- I-node you say? You must be using UNIX. Why re-invent the wheel?
- Use "ls -l directory_name".
-
- Fletcher.Glenn@ov.com
-
-